package com.ruoyi.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.R;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 需求进度对象 req_shedule
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
public class ReqShedule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进度id */
    private Long taskId;

    /** 需求id */
    @Excel(name = "需求id")
    private Long reqId;

    /** 进度类型 */
    @Excel(name = "进度类型")
    private Long taskCode;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 费用申请单对象 */
    @Excels({
            @Excel(name = "需求名称", targetAttr = "reqName", type = Excel.Type.EXPORT)
    })
    private Requirement requirement;

    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setReqId(Long reqId) 
    {
        this.reqId = reqId;
    }

    public Long getReqId() 
    {
        return reqId;
    }
    public void setTaskCode(Long taskCode) 
    {
        this.taskCode = taskCode;
    }

    public Long getTaskCode() 
    {
        return taskCode;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    public Requirement getRequirement()
    {
        return requirement;
    }

    public void setRequirement(Requirement requirement)
    {
        this.requirement = requirement;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("reqId", getReqId())
            .append("taskCode", getTaskCode())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("notes", getNotes())
            .toString();
    }
}
